/*
*	Author: Jacob Dufault
*	
*	Date Created: July 8th, 2009
*
*	Desc: A simple class that enables logging.  Use Log to log a message.
*/

#ifndef _LOGGER_HPP_
#define _LOGGER_HPP_

#include <fstream>
#include <string>
using namespace std;

namespace klasPhysics
{
class Logger
{
public:
	static bool Init(string filePath);
	static bool Shutdown();

	// Adds a message to the log, along with a new line.  The log is then flushed.
	inline static bool Log(string message)
	{
		m_File << message.c_str() << endl;
		m_File.flush();
		return !m_File.bad();
	}

private:
	static ofstream m_File;


};

}

#endif // _LOGGER_HPP_